import config from "@/config"
import http from "@/utils/request"

export default {
    GetUserById: {
		url: `${config.API_URL}/WeiXin/GetUserById`,
		name: "根据ID获取人员信息",
		get: async function(uid,agentid){
			return await http.get(this.url+`/${uid}/${agentid}`);
		}
	},

	GetBmById: {
		url: `${config.API_URL}/WeiXin/GetBmById`,
		name: "根据id获取部门信息",
		get: async function(uid,agentid){
			return await http.get(this.url+`/${uid}/${agentid}`);
		}
	},

	GetUserByCode: {
		url: `${config.API_URL}/WeiXin/GetUserByCode`,
		name: "根据code获取人员信息",
		get: async function(code,agentid){
			return await http.get(this.url+`/${code}/${agentid}`);
		}
	},
	GetJsapiTicket: {
		url: `${config.API_URL}/WeiXin/GetJsapiTicket`,
		name: "获取企业微信jsapi_ticket",
		get: async function(agentid){
			return await http.get(this.url+`/${agentid}`);
		}
	},
}
